/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package group6renderer.renderernode;

import group6renderer.Display;
import group6renderer.Visitor;

/**
 *
 * @author jonnie
 */
public class PreNode extends FormatNode {

	public PreNode()
	{
		name="pre";
	}
	
	@Override
    public void drawNode(Display disp)
    {
	 disp.getState().toggleState(name); 
    }

    @Override
    public boolean hasClosing()
    {
	return true;
    }

    @Override
    public TreeNode copy()
    {
	return new PreNode();
    }

    @Override
    public void accept(Visitor theVisitor)
    {
	theVisitor.visit(this);
    }

}
